<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>canvas图片</title>
    <style>
        canvas{background-color:lightblue;}
    </style>
</head>
<body>
<canvas id="canvas" width="800px" height="800px">您的浏览器不支持canvas
</canvas>
<script>
    var canvas=document.getElementById("canvas");
    var context=canvas.getContext('2d');
    context.arc(400,400,150,0,2*Math.PI,true);
    context.fillStyle="#7d7263";
    context.fill();
    var img=new Image();
    img.src="http://climg.mukewang.com/59a7df40000165fa06000600.jpg";
    img.onload=function(){
        context.drawImage(img,230,0,230,230,340,320,150,150);
    }

</script>
</body>
</html>